package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.UserDataMapper;
import com.pms.domain.UserData;
import com.pms.service.UserDataService;

@Service
public class UserDataServiceImpl implements UserDataService {
	
	@Autowired
	UserDataMapper userDataMapper;

	@Override
	public void insertUserData(UserData userData) {
		userDataMapper.insertUserData(userData);
	}

	@Override
	public UserData selectByPrimaryKey(String phone) {
		return userDataMapper.selectByPhone(phone);
	}

	@Override
	public void updateUserData(UserData userData) {
		userDataMapper.updateUserData(userData);
	}

	@Override
	public List<UserData> getAll() {
		return userDataMapper.getAll();
	}

	@Override
	public void deleteByPhone(String phone) {
		userDataMapper.deleteByPhone(phone);
	}

}
